package com.liushuo.controller;

import com.liushuo.entity.Mistake;
import com.liushuo.service.MistakeService;

import java.util.Date;
import java.util.List;

public class MistakeController {

    private final MistakeService mistakeService = new MistakeService();

    public boolean recordMistake(String userId, int questionId, int wrongAnswer) {
        return mistakeService.recordMistake(userId, questionId, wrongAnswer);
    }

    public List<Mistake> getMistakes(String userId, Date startDate, Date endDate) {
        return mistakeService.getMistakes(userId, startDate, endDate);
    }


}
